package io.dy.task;

import io.dy.utils.CommonUtils;

/**
 * @author dmj
 * @date 2024年03月02日 下午8:14
 */
public class MockTask {

    private final int duration;

    public MockTask(int duration) {
        this.duration = duration;
    }


    public int doWork(){
        CommonUtils.printThreadLog("任务执行");
        CommonUtils.sleepSecond(duration);
        return duration;
    }
}
